<?php
$uarxSessionServer = "localhost";
$uarxSessionUsername = "session";
$uarxSessionPassword = "ePePeMdL5e5510ne5";
$uarxSessionPassword = "";
$uarxSessionDBName = "wtgeekcom";

// CREATE DATABASE wtgeekcom 
// CREATE USER 'wtgeekcom'@'%' IDENTIFIED BY '***';
// GRANT USAGE ON * . * TO 'wtgeekcom'@'%' IDENTIFIED BY 'ePeDlBdDm5q' WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0 ;
// GRANT ALL PRIVILEGES ON `wtgeekcom` . * TO 'wtgeekcom'@'%';
// USE wtgeekcom;
// CREATE TABLE session_handler (uid INT NOT NULL AUTO_INCREMENT PRIMARY KEY, sessionid CHAR(26), data TEXT DEFAULT '', lastaccess INT)

function uarxSession_open($sessionPath, $sessionName)
{
	echo "sessionPath: $sessionPath\n";
	return true;
}

function uarxSession_close()
{
	return true;
}

function uarxSession_read($sessionID)
{
	echo $sessionID;
	return "";
}

function uarxSession_write($sessionID, $sessionData)
{
	return true;
}

function uarxSession_destroy($sessionID)
{
	return true;
}

function uarxSession_gc($sessionMaxLifetime)
{
	return true;
}

session_set_save_handler("uarxSession_open", "uarxSession_close", "uarxSession_read", "uarxSession_write", "uarxSession_destroy", "uarxSession_gc");

session_start();

?>